<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['qydl']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$id = isset($_GET['id'])?intval($_GET['id']):0;	
$ginfo = agentinfo($id);
if(!$ginfo || !$id){ echo "<script>window.location.href='agentlist.php';</script>";exit;}
$tpl->assign("ginfo",$ginfo);
$tpl->show('agentedit');
?>